package com.chilly.designpattern.template;

/**
 * 模板模式：定义一个模板结构，将具体内容延迟到子类去实现
 * Created by Chilly Cui on 2020/11/18.
 */
public abstract class Refrigerator {
    public void open(){
        System.out.println("开冰箱门");
    }

    public abstract void put();

    public void close(){
        System.out.println("关冰箱门");
    }

    public static void main(String[] args) {
        Refrigerator banana =  new Banana();
        banana.open();
        banana.put();
        banana.close();
    }
}
